-
Notifications
You must be signed in to change notification settings - Fork 295
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable DT by Default for the Go Agent #495
Enable DT by Default for the Go Agent #495
Conversation
@@ -14,14 +14,14 @@ import ( | |||
|
|||
func doRequest(txn *newrelic.Transaction) error { | |||
req, err := http.NewRequest("GET", "http://localhost:8000/segments", nil) | |||
if nil != err { | |||
if err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for fixing this, these always bothered me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a matter of principle I've been fixing those as I encounter them. when doing other fixes.
panic(err) | ||
} | ||
app.WaitForConnection(10 * time.Second) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this one-shot redis example work without that WaitForConnection in here?
This code enables DT by default for the Go agent.